import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'lark_auth_method_channel.dart';

abstract class LarkAuthPlatform extends PlatformInterface {
  /// Constructs a LarkAuthPlatform.
  LarkAuthPlatform() : super(token: _token);

  static final Object _token = Object();

  static LarkAuthPlatform _instance = MethodChannelLarkAuth();

  /// The default instance of [LarkAuthPlatform] to use.
  ///
  /// Defaults to [MethodChannelLarkAuth].
  static LarkAuthPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [LarkAuthPlatform] when
  /// they register themselves.
  static set instance(LarkAuthPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<String?> startSSOVerify({
    required String appId,
    bool? challengeMode,
    String? server,
    String? language,
    String? deviceId,
    List<String>? scopeList,
  }) {
    throw UnimplementedError('startSSOVerify() has not been implemented.');
  }
}
